package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Lenovo
 */
@Data
@ApiModel(value="MainDataFieldReq对象", description="新增主数据")
public class MainDataFieldReq implements Serializable {

    private static final long serialVersionUID = 1L;



    @NotBlank(message = "字段名称不能为空")
    @ApiModelProperty(value = "字段名称")
    private String fieldName;

    @ApiModelProperty(value = "字段名称id")
    private Long id;

    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @ApiModelProperty(value = "是否系统强制参数")
    private Integer isFixed;

    @ApiModelProperty(value = "字段正则")
    private String fieldRegex;


}
